const getList = (req, res) =>
  res.json({
    status: 200,
    message: '成功！',
    count: 10,
    pageNo: 1,
    pageSize: 10,
    total: 461,
    list: [
      {
        key: 4291,
        productOrderId: 4291,
        orderNo: '180900005478',
        orderId: 5478,
        description: '植物 套餐二  1份',
        count: 1,
        marketPrice: 300.0,
        salePrice: 240.0,
        marketAmount: 300.0,
        amount: 229.2,
        productId: 213,
        productName: '套餐二',
        bigImage: 'http://qn.9gms.net/d300287e-e235-4402-8b5e-150789b2ee14.jpg',
        addressPhone: '15617618716',
        addressContact: '卢志涛',
        fullAddress: '北京市市辖区丰台区泰隆大厦',
        commentId: 0,
        categoryName: '植物',
        expireTime: '2018/09/18 19:02',
        expired: 0,
        status: 7,
        statusNote: '已收货',
        createTime: '2018/09/18',
        distributerName: '',
        distributerPhone: '',
      },
      {
        key: 4290,
        productOrderId: 4290,
        orderNo: '180900005477',
        orderId: 5477,
        description: '植物 套餐二  1份',
        count: 1,
        marketPrice: 300.0,
        salePrice: 240.0,
        marketAmount: 300.0,
        amount: 229.2,
        productId: 213,
        productName: '套餐二',
        bigImage: 'http://qn.9gms.net/d300287e-e235-4402-8b5e-150789b2ee14.jpg',
        addressPhone: '15617618716',
        addressContact: '卢志涛',
        fullAddress: '北京市市辖区丰台区泰隆大厦',
        commentId: 0,
        categoryName: '植物',
        expireTime: '2018/09/18 18:53',
        expired: 0,
        status: 7,
        statusNote: '已收货',
        createTime: '2018/09/18',
        distributerName: '',
        distributerPhone: '',
      },
      {
        key: 4289,
        productOrderId: 4289,
        orderNo: '180900005476',
        orderId: 5476,
        description: '植物 套餐二  1份',
        count: 1,
        marketPrice: 300.0,
        salePrice: 240.0,
        marketAmount: 300.0,
        amount: 229.2,
        productId: 213,
        productName: '套餐二',
        bigImage: 'http://qn.9gms.net/d300287e-e235-4402-8b5e-150789b2ee14.jpg',
        addressPhone: '15617618716',
        addressContact: '卢志涛',
        fullAddress: '北京市市辖区丰台区泰隆大厦',
        commentId: 0,
        categoryName: '植物',
        expireTime: '2018/09/18 18:47',
        expired: 0,
        status: 7,
        statusNote: '已收货',
        createTime: '2018/09/18',
        distributerName: '',
        distributerPhone: '',
      },
      {
        key: 4288,
        productOrderId: 4288,
        orderNo: '180900005475',
        orderId: 5475,
        description: '植物 套餐二  1份',
        count: 1,
        marketPrice: 300.0,
        salePrice: 240.0,
        marketAmount: 300.0,
        amount: 229.2,
        productId: 213,
        productName: '套餐二',
        bigImage: 'http://qn.9gms.net/d300287e-e235-4402-8b5e-150789b2ee14.jpg',
        addressPhone: '15617618716',
        addressContact: '卢志涛',
        fullAddress: '北京市市辖区丰台区泰隆大厦',
        commentId: 0,
        categoryName: '植物',
        expireTime: '2018/09/18 18:42',
        expired: 0,
        status: 7,
        statusNote: '已收货',
        createTime: '2018/09/18',
        distributerName: '',
        distributerPhone: '',
      },
      {
        key: 4287,
        productOrderId: 4287,
        orderNo: '180900005474',
        orderId: 5474,
        description: '植物 套餐二  1份',
        count: 1,
        marketPrice: 300.0,
        salePrice: 240.0,
        marketAmount: 300.0,
        amount: 229.2,
        productId: 213,
        productName: '套餐二',
        bigImage: 'http://qn.9gms.net/d300287e-e235-4402-8b5e-150789b2ee14.jpg',
        addressPhone: '15617618716',
        addressContact: '卢志涛',
        fullAddress: '北京市市辖区丰台区泰隆大厦',
        commentId: 0,
        categoryName: '植物',
        expireTime: '2018/09/18 18:40',
        expired: 0,
        status: 2,
        statusNote: '未发货',
        createTime: '2018/09/18',
        distributerName: '',
        distributerPhone: '',
      },
      {
        key: 4286,
        productOrderId: 4286,
        orderNo: '180900005473',
        orderId: 5473,
        description: '植物 套餐二  1份',
        count: 1,
        marketPrice: 300.0,
        salePrice: 240.0,
        marketAmount: 300.0,
        amount: 229.2,
        productId: 213,
        productName: '套餐二',
        bigImage: 'http://qn.9gms.net/d300287e-e235-4402-8b5e-150789b2ee14.jpg',
        addressPhone: '15617618716',
        addressContact: '卢志涛',
        fullAddress: '北京市市辖区丰台区泰隆大厦',
        commentId: 0,
        categoryName: '植物',
        expireTime: '2018/09/18 18:27',
        expired: 0,
        status: 7,
        statusNote: '已收货',
        createTime: '2018/09/18',
        distributerName: '',
        distributerPhone: '',
      },
      {
        key: 4268,
        productOrderId: 4268,
        orderNo: '180900005465',
        orderId: 5465,
        description: '原产地茶 绿野千禽小米  1份',
        count: 1,
        marketPrice: 108.0,
        salePrice: 99.0,
        marketAmount: 108.0,
        amount: 99.0,
        productId: 148,
        productName: '绿野千禽小米',
        bigImage: 'http://qn.9gms.net/8dd8ebc9-be3b-44af-8cdf-1596cdab7bb6.jpg',
        addressPhone: '15617618716',
        addressContact: '卢志涛',
        fullAddress: '北京市市辖区石景山区泰隆大厦2009',
        commentId: 0,
        categoryName: '原产地茶',
        expireTime: '2018/09/10 10:36',
        expired: 0,
        status: 2,
        statusNote: '未发货',
        createTime: '2018/09/10',
        distributerName: '',
        distributerPhone: '',
      },
      {
        key: 4256,
        productOrderId: 4256,
        orderNo: '180800005459',
        orderId: 5459,
        description: '土蜂蜜酒 小米酒  1份',
        count: 1,
        marketPrice: 199.0,
        salePrice: 155.0,
        marketAmount: 199.0,
        amount: 155.0,
        productId: 106,
        productName: '小米酒',
        bigImage: 'http://images.9gms.net/images/productimages/216.jpg',
        addressPhone: '15617618716',
        addressContact: '卢志涛',
        fullAddress: '北京市市辖区石景山区泰隆大厦2009',
        commentId: 0,
        categoryName: '土蜂蜜酒',
        expireTime: '2018/08/26 22:59',
        expired: 0,
        status: 2,
        statusNote: '未发货',
        createTime: '2018/08/26',
        distributerName: '',
        distributerPhone: '',
      },
      {
        key: 4253,
        productOrderId: 4253,
        orderNo: '180800005457',
        orderId: 5457,
        description: '生发养发 桐木关正山小种  1份',
        count: 1,
        marketPrice: 1123456.0,
        salePrice: 699.0,
        marketAmount: 1123456.0,
        amount: 531.24,
        productId: 54,
        productName: '桐木关正山小种',
        bigImage: 'http://images.9gms.net/images/productimages/49.jpg',
        addressPhone: '15617618716',
        addressContact: '卢志涛',
        fullAddress: '北京市市辖区石景山区泰隆大厦2009',
        commentId: 0,
        categoryName: '生发养发',
        expireTime: '2018/08/26 15:42',
        expired: 0,
        status: 2,
        statusNote: '未发货',
        createTime: '2018/08/26',
        distributerName: '',
        distributerPhone: '',
      },
      {
        key: 4251,
        productOrderId: 4251,
        orderNo: '180800005455',
        orderId: 5455,
        description: '绿茶 信阳毛尖-佳品  1份',
        count: 1,
        marketPrice: 4798.0,
        salePrice: 2999.0,
        marketAmount: 4798.0,
        amount: 2324.23,
        productId: 39,
        productName: '信阳毛尖-佳品',
        bigImage: 'http://images.9gms.net/images/productimages/3.jpg',
        addressPhone: '15617618716',
        addressContact: '卢志涛',
        fullAddress: '北京市市辖区石景山区泰隆大厦2009',
        commentId: 0,
        categoryName: '绿茶',
        expireTime: '2018/08/26 15:12',
        expired: 0,
        status: 2,
        statusNote: '未发货',
        createTime: '2018/08/26',
        distributerName: '',
        distributerPhone: '',
      },
    ],
  });

const getData = (req, res) =>
  res.json({
    status: 200,
    message: '成功！',
    success: true,
    data: {
      productOrder: {
        productOrderId: 5583,
        orderId: 10795,
        orderNo: '180900010795',
        description: '绿茶 测试产品  1份',
        count: 1,
        marketPrice: 0.05,
        salePrice: 0.03,
        marketAmount: 0.05,
        amount: 0.022,
        productId: 70,
        productName: '测试产品',
        userId: 3,
        userPhone: '15617618716',
        userName: '花落了',
        userFamilyName: '卢',
        userGender: 0,
        userImage: 'http://qn.9gms.net/4ec5b18f-d6b4-4fd7-bbfb-c9176186ccab',
        bookUserId: 3,
        bookUserPhone: '15617618716',
        bookUserName: '花落了',
        bookUserFamilyName: '卢',
        bookUserGender: 0,
        bookUserImage: 'http://qn.9gms.net/4ec5b18f-d6b4-4fd7-bbfb-c9176186ccab',
        secretaryId: 0,
        secretaryPhone: '           ',
        secretaryName: '',
        secretaryFamilyName: '',
        secretaryGender: 0,
        secretaryImage: '',
        addressPhone: '15617618716',
        addressContact: '卢志涛',
        fullAddress: '江西省南昌市东湖区泰隆大厦1002',
        addressCategoryName: '',
        title: '',
        words: '',
        signature: '',
        commentId: 0,
        channel: 1,
        returnReason: 0,
        returnReasonText: '',
        expireTime: '2018/09/17 19:53',
        adminRemark: '',
        appId: 5,
        appName: '九个秘书Android',
        totalAmount: 0,
        settleAmount: 0,
        cost: 0,
        settlementMode: 0,
        workType: 0,
        workTypeName: '未知',
        settlementProportion: 0,
        settlementDeduction: 0,
        directorDivideProportion: 0,
        directorDivideDeduction: 0,
        directorSecretaryId: 0,
        directorSecretaryName: '',
        directorSettleAmount: 0,
        payType: 20,
        payTypeName: '微信支付  ',
        payInfo: '微信支付：0.02  ',
        useSecretaryCurrency: 0,
        status: 2,
        statusNote: '未发货',
        createTime: '2018/09/17 19:23',
        createUserId: 3,
        updateTime: '2018/09/17 19:23',
        updateUserId: 3,
        image: 'http://qn.9gms.net/0201c4ea-e1fb-42f1-bba5-128512e6b785.jpg',
      },
    },
  });

// const add = (req, res) => res.json({
//   "status": 200,
//   "success": true,
//   "message": "成功！",
//   "data": {
//     "name": "1",
//     "companyId": 2,
//     "defaultSet": 0,
//     "debtTypeId": 4,
//     "remark": "新增数据",
//     "ip": "42.236.185.177",
//     "status": 2,
//     "statusNote": "已启用",
//     "adminRemark": "",
//     "createUserId": 6,
//     "createTime": "2018-09-26 18:04:31",
//     "updateUserId": 0,
//     "updateTime": "2018-09-26 18:04:31",
//     "key": 4
//   }
// });

// const updateInfo = (req, res) => res.json({
//   "status": 200,
//   "success": true,
//   "message": "成功！",
//   "data": {
//     "statusNote": "已上架",
//     "preSaleTypeNote": "全款",
//     "newNote": "否",
//     "recommendNote": "是",
//     "name": "套餐二",
//     "shortName": "套餐二",
//     "brandId": 0,
//     "categoryId": 11,
//     "categoryName": "植物",
//     "origin": "",
//     "description": "",
//     "marketPrice": 300.0,
//     "salePrice": 240.0,
//     "costPrice": 60.0,
//     "companyPurchasePrice": 240.0,
//     "discount": 0.8,
//     "userLevelReward": 0,
//     "secretaryCurrencyGift": 0.0,
//     "settlementMode": 10,
//     "settlementProportion": 0.0,
//     "settlementDeduction": 0.0,
//     "partTimeSettlementProportion": 0.0,
//     "partTimeSettlementDeduction": 0.0,
//     "directorDivideProportion": 0.0,
//     "directorDivideDeduction": 0.0,
//     "total": 1000,
//     "stock": 993,
//     "feeRate": 0.0,
//     "fee": 0.0,
//     "settleAmount": 0.0,
//     "sales": 7,
//     "alertStock": 10,
//     "hits": 0,
//     "image1": "http://qn.9gms.net/d300287e-e235-4402-8b5e-150789b2ee14.jpg",
//     "image2": "http://images.9gms.net/images/productimages/product-default.jpg",
//     "image3": "http://images.9gms.net/images/productimages/product-default.jpg",
//     "image4": "http://images.9gms.net/images/productimages/product-default.jpg",
//     "image5": "http://images.9gms.net/images/productimages/product-default.jpg",
//     "image6": "http://images.9gms.net/images/productimages/product-default.jpg",
//     "image7": "http://images.9gms.net/images/productimages/product-default.jpg",
//     "image8": "http://images.9gms.net/images/productimages/product-default.jpg",
//     "features": "",
//     "details": "",
//     "notes": "",
//     "grantServiceVouchers": 0,
//     "participateDistributionByUser": 0,
//     "distributionByUserStartUserLevel": 0,
//     "distributionByUserOnlyHasDistributionRight": 0,
//     "distributionByUserCommissionPercentageLevelOne": 0.0,
//     "distributionByUserCommissionPercentageLevelTwo": 0.0,
//     "distributionByUserCommissionPercentageLevelThree": 0.0,
//     "currentDistributionByUserDepth": 2,
//     "distributionByUserStartTime": "1970-01-01 00:00:00",
//     "distributionByUserEndTime": "1970-01-01 00:00:00",
//     "participateDistributionByOrder": 0,
//     "distributionByOrderCommissionPercentageSecretary": 0.0,
//     "distributionByOrderCommissionPercentageLevelOne": 0.0,
//     "distributionByOrderCommissionPercentageLevelTwo": 0.0,
//     "distributionByOrderCommissionPercentageLevelThree": 0.0,
//     "currentDistributionByOrderDepth": 1,
//     "distributionByOrderStartTime": "1970-01-01 00:00:00",
//     "distributionByOrderEndTime": "1970-01-01 00:00:00",
//     "attribute1": "",
//     "attribute2": "",
//     "attribute3": "",
//     "attribute4": "",
//     "attribute5": "",
//     "attribute6": "",
//     "shelveTime": "2018-08-10 17:02:19",
//     "unshelveTime": "1970-01-01 00:00:00",
//     "expireTime": "1970-01-01 00:00:00",
//     "approveUserId": 0,
//     "approveTime": "1970-01-01 00:00:00",
//     "companyId": 2,
//     "showInPlatform": 2,
//     "hasSKU": false,
//     "content": "",
//     "cost": 2.0,
//     "virtualClaimCount": 0,
//     "new": 0,
//     "recommend": 1,
//     "needDistribution": 1,
//     "unitName": "个",
//     "minSaleCount": 1,
//     "buyForMember": false,
//     "logisticsConfigId": 0,
//     "sort": 0,
//     "limitSaleTime": false,
//     "saleStartTime": "1970-01-01 00:00:00",
//     "saleEndTime": "1970-01-01 00:00:00",
//     "isRestrictedPurchase": false,
//     "restrictedPurchaseCount": 0,
//     "isGift": false,
//     "povertyAlleviationPurseId": 0,
//     "isPreSale": false,
//     "preSaleTargetAmount": 0.0,
//     "preSaleStartTime": "1970-01-01 00:00:00",
//     "preSaleEndTime": "1970-01-01 00:00:00",
//     "preSaleType": 0,
//     "preSalePrice": 0.0,
//     "preSaleAmountToMoney": 0.0,
//     "isCrowdfund": false,
//     "crowdfundTargetAmount": 0.0,
//     "crowdfundStartTime": "1970-01-01 00:00:00",
//     "crowdfundEndTime": "1970-01-01 00:00:00",
//     "poorPeopleInfo": "",
//     "povertyAlleviationProportion": 0.1,
//     "developerProfitRatio": 0.15,
//     "cityPartnerProfitRatio": 0.4,
//     "platformProfitRatio": 0.25,
//     "performanceProfitRatio": 0.1,
//     "isSpecialPurchasesForTheSpringFestival": false,
//     "couponId": 0,
//     "ratioOfHeightToWidth": 1.0,
//     "canCompanyPurchase": false,
//     "canRebateRed": false,
//     "rebateRedAmount": 0.0,
//     "canLuckDrawAfterShare": false,
//     "isIndexShow": 0,
//     "skuDescription": null,
//     "videoUrl": "",
//     "productTypeId": 53,
//     "productTypeName": "默认分类",
//     "productUnitId": 18,
//     "productUnitName": "个",
//     "customBrandId": 92,
//     "customBrandName": "自有品牌",
//     "customCode": null,
//     "customSort": 0,
//     "customSearchWords": "",
//     "productsId": 213,
//     "remark": "更新信息",
//     "ip": "127.0.0.1",
//     "status": 2,
//     "adminRemark": "",
//     "createUserId": -10,
//     "createTime": "2018-08-10 17:02:03",
//     "updateUserId": 6,
//     "updateTime": "2018-09-26 19:34:36",
//     "key": 213
//   }
// });

// const remove = (req, res) => res.json({
//   "status": 200,
//   "success": true,
//   "message": "成功！",
//   "data": {
//     "Value": 4,
//     "Message": "删除成功！"
//   }
// });

const api = {
  'POST /api/ProductOrder/List': getList,
  'POST /api/ProductOrder/Get': getData,
  // 'POST /api/Product/Add': add,
  // 'POST /api/Product/UpdateInfo': updateInfo,
  // 'POST /api/Product/Remove': remove
};

export default api;
